Optimal. Leaf size=146 \[ -\frac {3 b^2 (4 A+C) \, _2F_1\left (\frac {1}{3},\frac {1}{2};\frac {4}{3};\cos ^2(c+d x)\right ) \sin (c+d x)}{8 d (b \sec (c+d x))^{2/3} \sqrt {\sin ^2(c+d x)}}+\frac {3 b B \, _2F_1\left (-\frac {1}{6},\frac {1}{2};\frac {5}{6};\cos ^2(c+d x)\right ) \sqrt [3]{b \sec (c+d x)} \sin (c+d x)}{d \sqrt {\sin ^2(c+d x)}}+\frac {3 b C \sqrt [3]{b \sec (c+d x)} \tan (c+d x)}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 146, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.128, Rules used = {16, 4132, 3857,
2722, 4131} \begin {gather*} -\frac {3 b^2 (4 A+C) \sin (c+d x) \, _2F_1\left (\frac {1}{3},\frac {1}{2};\frac {4}{3};\cos ^2(c+d x)\right )}{8 d \sqrt {\sin ^2(c+d x)} (b \sec (c+d x))^{2/3}}+\frac {3 b B \sin (c+d x) \sqrt [3]{b \sec (c+d x)} \, _2F_1\left (-\frac {1}{6},\frac {1}{2};\frac {5}{6};\cos ^2(c+d x)\right )}{d \sqrt {\sin ^2(c+d x)}}+\frac {3 b C \tan (c+d x) \sqrt [3]{b \sec (c+d x)}}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 16
Rule 2722
Rule 3857
Rule 4131
Rule 4132
Rubi steps
\begin {align*} \int \cos (c+d x) (b \sec (c+d x))^{4/3} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=b \int \sqrt [3]{b \sec (c+d x)} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx\\ &=b \int \sqrt [3]{b \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx+B \int (b \sec (c+d x))^{4/3} \, dx\\ &=\frac {3 b C \sqrt [3]{b \sec (c+d x)} \tan (c+d x)}{4 d}+\frac {1}{4} (b (4 A+C)) \int \sqrt [3]{b \sec (c+d x)} \, dx+\left (B \sqrt [3]{\frac {\cos (c+d x)}{b}} \sqrt [3]{b \sec (c+d x)}\right ) \int \frac {1}{\left (\frac {\cos (c+d x)}{b}\right )^{4/3}} \, dx\\ &=\frac {3 b B \, _2F_1\left (-\frac {1}{6},\frac {1}{2};\frac {5}{6};\cos ^2(c+d x)\right ) \sqrt [3]{b \sec (c+d x)} \sin (c+d x)}{d \sqrt {\sin ^2(c+d x)}}+\frac {3 b C \sqrt [3]{b \sec (c+d x)} \tan (c+d x)}{4 d}+\frac {1}{4} \left (b (4 A+C) \sqrt [3]{\frac {\cos (c+d x)}{b}} \sqrt [3]{b \sec (c+d x)}\right ) \int \frac {1}{\sqrt [3]{\frac {\cos (c+d x)}{b}}} \, dx\\ &=\frac {3 b B \, _2F_1\left (-\frac {1}{6},\frac {1}{2};\frac {5}{6};\cos ^2(c+d x)\right ) \sqrt [3]{b \sec (c+d x)} \sin (c+d x)}{d \sqrt {\sin ^2(c+d x)}}-\frac {3 b (4 A+C) \cos (c+d x) \, _2F_1\left (\frac {1}{3},\frac {1}{2};\frac {4}{3};\cos ^2(c+d x)\right ) \sqrt [3]{b \sec (c+d x)} \sin (c+d x)}{8 d \sqrt {\sin ^2(c+d x)}}+\frac {3 b C \sqrt [3]{b \sec (c+d x)} \tan (c+d x)}{4 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 1.60, size = 303, normalized size = 2.08 \begin {gather*} \frac {3 b \sqrt [3]{b \sec (c+d x)} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (-\frac {i \sqrt [3]{2} e^{-i (c+d x)} \sqrt [3]{\frac {e^{i (c+d x)}}{1+e^{2 i (c+d x)}}} \left (4 B \left (1+e^{2 i (c+d x)}\right )+4 B \left (-1+e^{2 i c}\right ) \sqrt [3]{1+e^{2 i (c+d x)}} \, _2F_1\left (-\frac {1}{3},\frac {1}{3};\frac {2}{3};-e^{2 i (c+d x)}\right )+(4 A+C) e^{i (c+d x)} \left (-1+e^{2 i c}\right ) \sqrt [3]{1+e^{2 i (c+d x)}} \, _2F_1\left (\frac {1}{6},\frac {1}{3};\frac {7}{6};-e^{2 i (c+d x)}\right )\right )}{-1+e^{2 i c}}+\sqrt [3]{\sec (c+d x)} (4 B \cos (d x) \csc (c)+C \tan (c+d x))\right )}{2 d (A+2 C+2 B \cos (c+d x)+A \cos (2 (c+d x))) \sec ^{\frac {7}{3}}(c+d x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.43, size = 0, normalized size = 0.00 \[\int \cos \left (d x +c \right ) \left (b \sec \left (d x +c \right )\right )^{\frac {4}{3}} \left (A +B \sec \left (d x +c \right )+C \left (\sec ^{2}\left (d x +c \right )\right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \cos \left (c+d\,x\right )\,{\left (\frac {b}{\cos \left (c+d\,x\right )}\right )}^{4/3}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________